<?php

require_once SMARTY_DIR . 'Smarty.class.php';

class PersonalSmarty extends Smarty {

    // Construtor para ajuste de váriaveis:
    public function __construct() {
        parent::__construct();
        
        $this->setTemplateDir(TEMPLATE_DIR);
        $this->setCompileDir(COMPILE_DIR);
        $this->setConfigDir(CONFIG_DIR);
        $this->addPluginsDir(MY_SMARTY_PLUGINS_DIR);
        
        /*
         * Warning: filemtime(): stat failed for 
         * /path/to/smarty/cache/3ab50a623e65185c49bf17c63c90cc56070ea85c.one.tpl.php
         * in /path/to/smarty/libs/sysplugins/smarty_resource.php
         * This means that your application registered a custom error hander 
         * (using set_error_handler()) which is not respecting the given $errno 
         * as it should. If, for whatever reason, this is the desired behaviour 
         * of your custom error handler, please call muteExpectedErrors() after 
         * you've registered your custom error handler.
         */
        $this->muteExpectedErrors();
        
    }

}

?>
